<fieldset>
	<legend>Contribution editor</legend>

	<?php if(!isset($action)) $action = 'processdesigner/create_contribution'; ?>
	<?php echo form_open($action); ?>
		<ul>
			<li><p>
                                <?php echo form_error('name'); ?>
				<label for="name">Contribution title:</label><br />
				<input type="text" name="name" id="name" value="<?php echo $name; ?>" />
			</p></li>

			<li><p>
                                <?php echo form_error('description'); ?>
				<label for="description">Contribution description:</label><br />

				<textarea rows="10" cols="80" name="description" id="description"><?php echo $description; ?></textarea>
			</p></li>

			<li><p>
				<input type="submit" value="Save" />
                                <?php if(!isset($location)) $location = 'home/main'; ?>
				<input type="button" value="Cancel" onclick="javascript:document.location = '<?php echo site_url($location); ?>'" />
			</p></li>
		</ul>
	<?php echo form_close(); ?>

</fieldset>

